<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'members-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'guild_id'); ?>
                <?php echo $form->dropDownList($model,'guild_id', CHtml::listData(Guilds::model()->findAll(), 'id', 'name')); ?>
		<?php echo $form->error($model,'guild_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'class_id'); ?>
		<?php echo $form->textField($model,'class_id',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'class_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'rank_id'); ?>
		<?php echo $form->textField($model,'rank_id',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'rank_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'race_id'); ?>
		<?php echo $form->textField($model,'race_id',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'race_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'gender'); ?>
                <?php echo $form->dropDownList($model,'gender', $model->getGenderOptions()); ?>
		<?php echo $form->error($model,'gender'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'joined_date'); ?>
		<?php echo $form->textField($model,'joined_date'); ?>
		<?php echo $form->error($model,'joined_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'leave_date'); ?>
		<?php echo $form->textField($model,'leave_date'); ?>
		<?php echo $form->error($model,'leave_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>256)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'external_url'); ?>
		<?php echo $form->textField($model,'external_url',array('size'=>60,'maxlength'=>256)); ?>
		<?php echo $form->error($model,'external_url'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'comment'); ?>
		<?php echo $form->textField($model,'comment',array('size'=>60,'maxlength'=>256)); ?>
		<?php echo $form->error($model,'comment'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'hidden'); ?>
		<?php echo $form->checkBox($model,'hidden'); ?>
		<?php echo $form->error($model,'hidden'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->